package net.vkits.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.dozer.Mapping;

import java.util.Objects;



/**
 * 合同
 **/

/**
 * 合同
 */
@ApiModel(description = "合同")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-10-27T05:49:23.577Z")

public class Contract   {
  private String landlord = null;

  private String account = null;

  private String bank = null;

  private String cellphone = null;

  @Mapping("photo1Url")
  private String photo1 = null;

  @Mapping("photo2Url")
  private String photo2 = null;

  @Mapping("photo3Url")
  private String photo3 = null;

  public Contract landlord(String landlord) {
    this.landlord = landlord;
    return this;
  }

   /**
   * 房东姓名
   * @return landlord
  **/
  @ApiModelProperty(value = "房东姓名")
  public String getLandlord() {
    return landlord;
  }

  public void setLandlord(String landlord) {
    this.landlord = landlord;
  }

  public Contract account(String account) {
    this.account = account;
    return this;
  }

   /**
   * 房东账号
   * @return account
  **/
  @ApiModelProperty(value = "房东账号")
  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public Contract bank(String bank) {
    this.bank = bank;
    return this;
  }

   /**
   * 房东开户行
   * @return bank
  **/
  @ApiModelProperty(value = "房东开户行")
  public String getBank() {
    return bank;
  }

  public void setBank(String bank) {
    this.bank = bank;
  }

  public Contract cellphone(String cellphone) {
    this.cellphone = cellphone;
    return this;
  }

   /**
   * 房东手机号
   * @return cellphone
  **/
  @ApiModelProperty(value = "房东手机号")
  public String getCellphone() {
    return cellphone;
  }

  public void setCellphone(String cellphone) {
    this.cellphone = cellphone;
  }

  public Contract photo1(String photo1) {
    this.photo1 = photo1;
    return this;
  }

   /**
   * 合同照片1
   * @return photo1
  **/
  @ApiModelProperty(value = "合同照片1")
  public String getPhoto1() {
    return photo1;
  }

  public void setPhoto1(String photo1) {
    this.photo1 = photo1;
  }

  public Contract photo2(String photo2) {
    this.photo2 = photo2;
    return this;
  }

   /**
   * 合同照片2
   * @return photo2
  **/
  @ApiModelProperty(value = "合同照片2")
  public String getPhoto2() {
    return photo2;
  }

  public void setPhoto2(String photo2) {
    this.photo2 = photo2;
  }

  public Contract photo3(String photo3) {
    this.photo3 = photo3;
    return this;
  }

   /**
   * 合同照片3
   * @return photo3
  **/
  @ApiModelProperty(value = "合同照片3")
  public String getPhoto3() {
    return photo3;
  }

  public void setPhoto3(String photo3) {
    this.photo3 = photo3;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Contract contract = (Contract) o;
    return Objects.equals(this.landlord, contract.landlord) &&
        Objects.equals(this.account, contract.account) &&
        Objects.equals(this.bank, contract.bank) &&
        Objects.equals(this.cellphone, contract.cellphone) &&
        Objects.equals(this.photo1, contract.photo1) &&
        Objects.equals(this.photo2, contract.photo2) &&
        Objects.equals(this.photo3, contract.photo3);
  }

  @Override
  public int hashCode() {
    return Objects.hash(landlord, account, bank, cellphone, photo1, photo2, photo3);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Contract {\n");

    sb.append("    landlord: ").append(toIndentedString(landlord)).append("\n");
    sb.append("    account: ").append(toIndentedString(account)).append("\n");
    sb.append("    bank: ").append(toIndentedString(bank)).append("\n");
    sb.append("    cellphone: ").append(toIndentedString(cellphone)).append("\n");
    sb.append("    photo1: ").append(toIndentedString(photo1)).append("\n");
    sb.append("    photo2: ").append(toIndentedString(photo2)).append("\n");
    sb.append("    photo3: ").append(toIndentedString(photo3)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

